//
//  UIColor+Ex.swift
//  Browser
//
//  Created by 鹏鹏 on 2021/7/4.
//

import Foundation

extension UIColor {

    class func simpleColor(_ r: CGFloat, _ g: CGFloat, _ b: CGFloat, _ a: CGFloat = 1) -> UIColor {
        return UIColor(red: r / 255.0, green: g / 255.0, blue: b / 255.0, alpha: a)
    }

    class func simpleColorSame(_ value: CGFloat, _ a: CGFloat = 1) -> UIColor {
        return self.simpleColor(value, value, value, a)
    }
}
